package movee.spring.app.template.domain.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.sql.Timestamp;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class BaseItemQuery {

    /**
     * 自增长id，主键
     */
    @ApiModelProperty(value = "item id")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 顺序
     */
    @ApiModelProperty(value = "顺序")
    private Integer sequence;

    /**
     * 是否删除（逻辑），0代表未删除，1代表已删除
     */
    @ApiModelProperty(value = "是否删除（逻辑），0代表未删除，1代表已删除")
    private Boolean delete;

    /**
     * =创建人
     */
    @ApiModelProperty(value = "创建人")
    private String creator;

    /**
     * =更新人
     */
    @ApiModelProperty(value = "最后修改人")
    private String updater;

    /**
     * =创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "最后更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;

}
